package com.gxa.autoparts.admin.mapper;

import com.gxa.autoparts.core.pojo.Coupon;
import com.gxa.autoparts.core.pojo.CouponUseRecord;
import com.gxa.autoparts.core.pojo.CouponUseRecordVo;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author R
 * @data 2022-01-10 16:12
 */
public interface CouponMapper extends Mapper<Coupon> {
    List<Map> couponUseRecord(Long id,Integer page,Integer size);

    Integer couponUseRecordCount(Long id);

    List<Map> couponUseRecordByLike(Long id, String name, Integer type, String userName, String phone, String useStartTime, String useEndTime, Integer page, Integer size);

    List<Map> couponSelectAll(Integer page,Integer size);

    List<Map> couponSelectByLike(String name,Integer type,String startTime, String endTime,Integer page,Integer size);

    List<Integer> selectType();

    List<Map> couponYes(Long id);

    List<Map> couponNo(Long id);


}
